
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type AgentLevelTaskRequest struct {

	LevelId string `json:"level_id" form:"level_id"`

	Name string `json:"name" form:"name"`

	Type string `json:"type" form:"type"`

	Number string `json:"number" form:"number"`

	Desc string `json:"desc" form:"desc"`

	IsMust string `json:"is_must" form:"is_must"`

	Sort string `json:"sort" form:"sort"`

	Status string `json:"status" form:"status"`

	IsDel string `json:"is_del" form:"is_del"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *AgentLevelTaskRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *AgentLevelTaskRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"level_id": "required",

		"name": "required",

		"type": "required",

		"number": "required",

		"desc": "required",

		"is_must": "required",

		"sort": "required",

		"status": "required",

		"is_del": "required",

		"add_time": "required",

	}
}

func (r *AgentLevelTaskRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AgentLevelTaskRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AgentLevelTaskRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
